﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using RecruitStudents.Utility;
using System.Data;

namespace RecruitStudents.Client.WS
{
    /// <summary>
    /// AppointmentService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class AppointmentService : WS.Helper.BaseServiceHelper
    {

        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetCheckStudentAppointmentDataTable_First_New(string idCard, string examPlace, string examLevel, string strExamYear)
        {
            return ServiceAppointment.GetCheckStudentAppointmentDataTable_First_New(idCard, examPlace, examLevel, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetAppointmentStudentDataTable_First_New(string examPlaceNo, string specialityKindsNo, string examLevel, string strExamYear, string strName, string strIdCard)
        {
            return ServiceAppointment.GetAppointmentStudentDataTable_First_New(examPlaceNo, specialityKindsNo, examLevel, strExamYear, strName, strIdCard).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string CheckStudentAppointmentDataTable_First_New(string idCard, string examPlace, string specialityKindsNo, string examLevel, string strExamYear)
        {
            return ServiceAppointment.CheckStudentAppointmentDataTable_First_New(idCard, examPlace, specialityKindsNo, examLevel, strExamYear).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string MakeAppointment_First_New(string strSignUpID, string strExamPlaceNO, string strSpecNo, string strExamLevel, string strExamYear)
        {
            return ServiceAppointment.MakeAppointment_First_New(strSignUpID, strExamPlaceNO, strSpecNo, strExamLevel, strExamYear).ToJson();
        }




        [SoapHeader("MyHeader")]
        [WebMethod]
        public DataSet GetStudentAppointmentDataTable_Print(string idCard, string examPlace, string specialityKindsNo, string examLevel, string strExamYear)
        {
            return ServiceAppointment.GetStudentAppointmentDataTable_Print(idCard, examPlace, specialityKindsNo, examLevel, strExamYear);
        }
        #region First
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存考生图片 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignupID:考生ID
            <br><font color='blue'>string</font> strPicData:图片二进制字符串")]
        public string SaveAppointmentIdCard_First(string strSignupID, string strPicData)
        {
            return ServiceAppointment.SaveAppointmentIdCard_First(strSignupID, strPicData).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>获取考场专业分组实体 TB_Sys_ExamPlaceSpecialityKindsGroupMapping</i></b>
            <br><font color='blue'>string</font> strGroupNO:分组编号")]
        public string GetAppointmentGroupTypeName_First(string strGroupNO)
        {
            return ServiceAppointment.GetAppointmentGroupTypeName_First(strGroupNO).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 获取考点-专业-考试时间映射表（分组）信息 DataTable</i></b>
            <br><font color='blue'>string</font> strExamPlaceNo:考场编号
            <br><font color='blue'>string</font> strSpecialityKindsNo:专业编号
            <br><font color='blue'>string</font> strExamLevel:考试级别")]
        public string GetAppointmentTypeDataTable_First(string strExamPlaceNo, string strSpecialityKindsNo, string strExamLevel)
        {
            return ServiceAppointment.GetAppointmentTypeDataTable_First(strExamPlaceNo, strSpecialityKindsNo, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 获取组内学生 DataTable</i></b>
            <br><font color='blue'>string</font> strGroupNo:分组编号
            <br><font color='blue'>string</font> strExamPlaceNo:考场编号
            <br><font color='blue'>string</font> strSpecialityKindsNo:专业编号
            <br><font color='blue'>string</font> strExamLevel:考试级别")]
        public string GetAppointmentStudentDataTable_First(string strGroupNo, string strExamPlaceNo, string strSpecialityKindsNo, string strExamLevel)
        {
            return ServiceAppointment.GetAppointmentStudentDataTable_First(strGroupNo, strExamPlaceNo, strSpecialityKindsNo, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 获取组内学生 DataTable</i></b>
            <br><font color='blue'>string</font> strIdCard:身份证号
            <br><font color='blue'>string</font> strExamPlaceNo:考场编号
            <br><font color='blue'>string</font> strSpecialityKindsNo:专业编号
            <br><font color='blue'>string</font> strExamLevel:考试级别")]
        public string CheckStudentAppointmentDataTable_First(string strIdCard, string strExamPlaceNo, string strSpecialityKindsNo, string strExamLevel)
        {
            return ServiceAppointment.CheckStudentAppointmentDataTable_First(strIdCard, strExamPlaceNo, strSpecialityKindsNo, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 预约分组 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignUpStudentsSpecialityID:报考专业id
            <br><font color='blue'>string</font> strGroupNo:分组编号")]
        public string MakeAppointment_First(string strSignUpStudentsSpecialityID, string strGroupNo)
        {
            return ServiceAppointment.MakeAppointment_First(strSignUpStudentsSpecialityID, strGroupNo).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 取消分组 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignUpStudentsSpecialityID:报考专业id
            <br><font color='blue'>string</font> strGroupNo:分组编号")]
        public string CancelAppointment_First(string strSignUpStudentsSpecialityID, string strGroupNo)
        {
            return ServiceAppointment.CancelAppointment_First(strSignUpStudentsSpecialityID, strGroupNo).ToJson();
        }
        #endregion

        #region Second
        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 获取组内学生 DataTable</i></b>
            <br><font color='blue'>string</font> strGroupNo:分组编号
            <br><font color='blue'>string</font> strExamPlaceNo:考场编号
            <br><font color='blue'>string</font> strSpecialityKindsNo:专业编号
            <br><font color='blue'>string</font> strExamLevel:考试级别")]
        public string GetAppointmentStudentDataTable_Second(string strGroupNo, string strExamPlaceNo, string strSpecialityKindsNo, string strExamLevel)
        {
            return ServiceAppointment.GetAppointmentStudentDataTable_Second(strGroupNo, strExamPlaceNo, strSpecialityKindsNo, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 获取组内学生 DataTable</i></b>
            <br><font color='blue'>string</font> strIdCard:身份证号
            <br><font color='blue'>string</font> strExamPlaceNo:考场编号
            <br><font color='blue'>string</font> strSpecialityKindsNo:专业编号
            <br><font color='blue'>string</font> strExamLevel:考试级别")]
        public string CheckStudentAppointmentDataTable_Second(string strIdCard, string strExamPlaceID, string strSpecialityKindsNO, string strExamLevel)
        {
            return ServiceAppointment.CheckStudentAppointmentDataTable_Second(strIdCard, strExamPlaceID, strSpecialityKindsNO, strExamLevel).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 预约分组 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignUpStudentsSpecialityID:报考专业ID
            <br><font color='blue'>string</font> strGroupNo:分组信息")]
        public string MakeAppointment_Second(string strSignUpStudentsSpecialityID, string strGroupNo)
        {
            return ServiceAppointment.MakeAppointment_Second(strSignUpStudentsSpecialityID, strGroupNo).ToJson();
        }


        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 现场分组 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignupid:考生号ID
            <br><font color='blue'>string</font> strPicData:图片二进制字符串")]
        public string SaveAppointmentIdCard_Second(string strSignupid, string strPicData)
        {
            return ServiceAppointment.SaveAppointmentIdCard_Second(strSignupid, strPicData).ToJson();
        }


        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i> 取消分组 JsonMessage</i></b>
            <br><font color='blue'>string</font> strSignUpStudentsSpecialityID:报考专业ID
            <br><font color='blue'>string</font> strGroupNo:分组信息")]
        public string CancelAppointment_Second(string strSignUpStudentsSpecialityID, string strGroupNo)
        {
            return ServiceAppointment.CancelAppointment_Second(strSignUpStudentsSpecialityID, strGroupNo).ToJson();
        }
        #endregion
    }
}
